<style>
    body{
        background-color: #f9f9f9;
    }
    .td_lg{
        width: 300px;
    }
    .td_sm{
        width: 75px;
    }
    .td_md{
        width: 150px;
    }
</style>
<script>
    var info = null;
    {% if info is defined %}
        info = {{ info }};
    {% endif %}
</script>
<input name="catalogs" type="hidden">
<form id="xh_form" class="xh-form"  method="post"    style="margin-left: 20px;">
    <div class="xh-area-form">
        <table >
            <tr>
                <td class="td_sm"><label>年级</label><input type="hidden" name="iSBEId"><input type="hidden" name="iSBLId" value="{{ iSBLId }}"></td>
                <td class="td_md">
                    <select name="iGrade">
                        <option value="" selected style="display: none">请选择</option>
                        {% for id,text in iGrade %}
                            <option value="{{ id }}">{{ text }}</option>
                        {% endfor %}
                    </select>
                </td>
                <td class="td_sm"><label>学科</label></td>
                <td class="td_md">
                    <select name="iSubject">
                        <option value="" selected style="display: none">请选择</option>
                    </select>
                </td>
                <td class="td_sm"><label>老师</label></td>
                <td class="td_md">
                    <select name="iTchId">
                        <option value="" selected style="display: none">请选择</option>
                        {% for id,text in users %}
                            <option value="{{ id }}">{{ text }}</option>
                        {% endfor %}
                    </select>
                </td>
            </tr>
            <tr>
                <td class="td_sm"><label>开始时间</label></td>
                <td class="td_md"><input name="tStartTime" class="form-date"></td>
                <td class="td_sm"><label>结束时间</label></td>
                <td class="td_md"><input name="tEndTime" class="form-date"></td>
                <td class="td_sm"><label>项目对接人</label></td>
                <td class="td_md">
                    <select name="iChargeId">
                        <option value="" selected style="display: none">请选择</option>
                        {% for key,row in jsb %}
                            <option value="{{ row['id'] }}">{{ row['text'] }}</option>
                        {% endfor %}
                    </select>
                </td>
            </tr>
            <tr>
                <td ><label>题库</label></td>
                <td colspan="3"><select name="sBookId" >
                        <option value="" selected style="display: none">请选择</option>
                        {% for id,text in books %}
                            <option value="{{ id }}">{{ text }}</option>
                        {% endfor %}
                    </select><input type="hidden" name="sBookName"></td>
            </tr>
            <tr>
                <td ><label>章节</label></td>
                <td colspan="4">
                    <select name="sChapterIds[]" multiple="multiple">
                        <option value="" selected style="display: none">请选择</option>
                    </select>
                </td>
                <td>
                    <a id="allSelect" class="btn btn-primary" >全部选中</a>
                </td>
            </tr>
            <tr>
                <td ><label>题量</label></td>
                <td ><input name="iQuestionNum" type="number"></td>
                <td ><label>真实题量</label></td>
                <td ><input name="iRealNum" type="number" readonly></td>
                <td ><label>是否完成</label></td>
                <td >
                    <select name="bFinish">
                        <option value="0" selected>否</option>
                        <option value="1">是</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td valign="middle" >备注</td>
                <td colspan="5">
                    <textarea rows="3" name="mReason"></textarea>
                </td>
            </tr>

        </table>
    </div>
</form>